package com.lap.auth.application.login.dto;

import com.lap.framework.common.dto.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "登录日志分页过滤条件")
public class QueryLoginLogPageQuery extends PageRequest {

  @Schema(description = "登录账号")
  private String userName;

  @Schema(description = "姓名")
  private String fullName;

  @Schema(description = "登录状态:0-失败,1-成功")
  private Integer success;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @Schema(description = "时间区间")
  private LocalDateTime[] randTime;
}
